
#pragma once


//extern "C" {
//
//#include <libavformat/avformat.h>
////#include <libswscale/swscale.h>
//#include <libavutil/imgutils.h>
//#include "libavutil/opt.h"
//#include "libavcodec/avcodec.h"
//
//}


class playMediaUtils
{
public:

	static int  playstream_frameToBuf(char* yuvBuf, void* pframe);
	static void playstream_bufToframe(int _w, int _h, char* _buf, void* pframe);

	static void playstream_loadLogo();
	static bool playstream_hasLogo();
	static void playstream_AddWarterMark(char* yuv, int yuv_width, int yuv_height);

	static void setWaterMarkWH(int _width, int _height);
	static bool GetWarterMarkYUV(char* yuv, int yuv_width, int yuv_height);

};
